package com.ten.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ten.mapper.CarTakeMapper;
import com.ten.pojo.CarTake;
import com.ten.service.CarTakeService;
@Service
public class CarTakeServiceImpl implements CarTakeService {
	@Autowired
	private CarTakeMapper carMapper;
	@Override
	public int insertCarTake(CarTake take) {
		int i =carMapper.insert(take);
		return i;
	}

	@Override
	public List<CarTake> selectByPage(Map<String, Integer> map) {
		List<CarTake> result =carMapper.selectByPage(map);
		return result;
	}

}
